#include "comm.h"

int main()
{
    int shmid=createShm(4096);

    char *addr=shmat(shmid,NULL,0);
    sleep(2);
    int i=0;
    while(i++<26)
    {
        printf("client addr# %s\n",addr);
        sleep(1);
    }

    shmdt(addr);//detach 脱离
    sleep(2);
    destroyShm(shmid);
    return 0;
}